package com.api.rocky.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.api.rocky.R;
import com.api.rocky.app.friend.FallInLoveActivity;
import com.api.rocky.app.friend.NearUserListActivity;

public class FindFirendActivity extends Activity {
	Button but_addFriend,but_fallinlove,but_setLocation,but_nearUser,but_loveword;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_find_firend);
        but_addFriend = (Button) findViewById(R.id.add);
        but_addFriend.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View arg0) {
				Intent intent = new Intent();
	            intent.setClass(FindFirendActivity.this, AddFirentActivity.class);
	            startActivityForResult(intent, 1);
			}
		});
        
        but_fallinlove = (Button) findViewById(R.id.fallinlove);
        but_fallinlove.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View arg0) {
				Intent intent = new Intent();
	            intent.setClass(FindFirendActivity.this, FallInLoveActivity.class);
	            startActivityForResult(intent, 1);
			}
		});
        
        but_setLocation = (Button) findViewById(R.id.met);
        but_setLocation.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View arg0) {
				Intent intent = new Intent();
	            intent.setClass(FindFirendActivity.this, LocationActivity.class);
	            startActivityForResult(intent, 1);
			}
		});
        
        but_nearUser = (Button) findViewById(R.id.near);
        but_nearUser.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View arg0) {
				Intent intent = new Intent();
	            intent.setClass(FindFirendActivity.this, NearUserListActivity.class);
	            startActivityForResult(intent, 1);
			}
		});
        
        but_loveword = (Button) findViewById(R.id.note);
        but_loveword.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View arg0) {
				Intent intent = new Intent();
	            intent.setClass(FindFirendActivity.this, LoveWordListActivity.class);
	            startActivityForResult(intent, 1);
			}
		});
    }

}
